package com.example.houseitemmanagebackend.utils;

public class RedisConstants {
    public static final String RESET_PASSWORD_CODE_KEY = "reset_password_code:";
    public static final Long RESET_PASSWORD_CODE_TTL = 5L; // 5 minutes

    public static final String LOGIN_USER_KEY = "login:user:";
    public static final Long LOGIN_USER_TTL = 30L; // 30 minutes

    public static final String CATEGORY_LIST_KEY = "cache:category:list";
    public static final Long CATEGORY_LIST_TTL = 60L; // 60 minutes

    public static final String LOCATION_LIST_KEY = "cache:location:list";
    public static final Long LOCATION_LIST_TTL = 60L; // 60 minutes

    public static final String ICON_LIST_KEY = "cache:icon:list:"; // Note the trailing colon for dynamic keys
    public static final Long ICON_LIST_TTL = 60L; // 60 minutes

    public static final String ICON_CATEGORIES_KEY = "cache:icon:categories";
    public static final Long ICON_CATEGORIES_TTL = 60L; // 60 minutes

    public static final String STATUS_LIST_KEY = "cache:status:list";
    public static final Long STATUS_LIST_TTL = 1440L; // 24 hours, as statuses are unlikely to change often

    public static final String USER_SETTING_KEY = "cache:user:setting:"; // Note the trailing colon for dynamic keys
    public static final Long USER_SETTING_TTL = 120L; // 120 minutes

}